import { AuthUser } from '../types/auth';
import { UserRole } from '../types/prisma-types';
import { randomUUID } from 'crypto';

export function createMockUser(overrides: Partial<AuthUser> = {}): AuthUser {
  const now = new Date();
  const userId = randomUUID();
  return {
    id: userId,
    email: `test${userId}@example.com`,
    name: `Test User ${userId}`,
    role: UserRole.STUDENT,
    createdAt: now,
    updatedAt: now,
    isActive: true,
    ...overrides
  };
}
